package com.yuxi.Dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.yuxi.Entity.EvaluationRecord;
import com.yuxi.Entity.Information;
import com.yuxi.Request.InformationQuery;
import com.yuxi.Request.Page;
/**
 *评价记录操作接口
 * @author hunter
 * @version 1.0
 * 2016/07/18
 */
@Repository
public interface EvaluationRecordDao {
	/**
	 * 通过eRecordId获取EvaluationRecord
	 * @param 	eRecordId
	 * @return EvaluationRecord 
	 * */
	public EvaluationRecord getRecord(Integer eRecordId);
	/**
	 * 添加一个eRecord  并返回添加的实体类
	 * @param 	eRecordId
	 * @return EvaluationRecord 
	 * */
	public EvaluationRecord addRecord(EvaluationRecord eRecord);
	/**
	 * 删除一个eRecord  并返回删除的实体类
	 * @param 	eRecord EvaluationRecord实体类
	 * @return EvaluationRecord 
	 * */
	public void deleteRecord(EvaluationRecord eRecord);
	/**
	 * 修改一个eRecord  并返回修改的实体类
	 * @param  eRecord EvaluationRecord实体类
	 * @return EvaluationRecord 
	 * */
	public void modifly(EvaluationRecord eRecord);
	
	public Page<Information> getRateAll(InformationQuery inforQuery,Page<Information> p,int userId);
	/**
	 * 通过信息id获取评价记录
	 * @param InfoId
	 * @return EvaluationRecord
	 */
	public EvaluationRecord getEvaluationRecordByInfoId(Integer InfoId,Integer userId);
	/**
	 * 待查阅获取所有的点评记录
	 * @param InfoId
	 * @return
	 */
	public List<EvaluationRecord> getAllEvaluationRecord(Integer InfoId);
}
